
function addansertext(index){
	
	$("#responses"+index).unbind('click').removeAttr('onclick');
	var inputlength=index+1;
	alert(inputlength);
	 //var bookmarkdiv = document.createElement("div");
	 //bookmarkdiv.className="bookmark_font left clear";
	//var titlelabeldiv = document.createElement("div");
	//var titlestr=inputlength;
	// titlelabeldiv.className="title_label left";
	//titlelabeldiv.innerHTML=titlestr;
	var inputdiv = document.createElement("div");
	inputdiv.className="nav2";
	 //inputdiv.id="myaddiput";
	 var input = document.createElement("input");
	 input.className="input-text";
	 input.type = "text";
	 input.id = "responses"+inputlength;
	 input.name = "responses[]";
	 input.value = ""; 
	 
	$(input).click(function(){
		addansertext(inputlength);
		}); 
	
		
		inputdiv.appendChild(input);
		//bookmarkdiv.appendChild(titlelabeldiv);
	//bookmarkdiv.appendChild(inputdiv);
	document.getElementById("subtitle").appendChild(inputdiv);
	//document.getElementById("subtitle").appendChild(bookmarkdiv);
	
}
